/**
 * [logoutHandle 退出操作]
 */
function logoutHandle()
{
	var _load; 
	$.ajax({
		url:"/admin/common/logout",
		beforeSend: function(){
			_load = layer.load(1);
		},
		success: function (res){
			var json = JSON.parse(res);
			console.log(json);
			if(json.status == 0)
			{
				layer.msg(json.message, {icon: 1, time:1000},function(){
					window.location.href = "/admin/common/login";
				})
			}
			else
			{
				layer.alert(json.message, {icon: 2});
			}
		},
		error: function(){
			layer.alert('网络错误，稍后重试！', {icon: 2});
		},
		complete: function(){
			layer.close(_load);
		}
	});
}